home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-01
/
wtek0693.zip
/
OOPALLEY.ZIP
/
RANDOM.H
< prev
next >
Wrap
C/C++ Source or Header
|
1993-04-27
|
706b
|
26 lines
#ifndef RANDOM_H
#define RANDOM_H
#include "object.h"
extern const Class class_Random;
////////////////////////////////////////////////////////////
// class Random (declaration)
////////////////////////////////////////////////////////////
class Random: public Object {
unsigned long randx;
public:
// constructors, destructors
Random();
Random(long seed) { randx = seed; }
float next() const;
virtual Object* copy() const;
virtual void deepenShallowCopy();
virtual const Class* isA() const;
virtual void printOn(ostream& strm) const;
};
#endif